package com.leadbank.example.client;

import com.leadbank.example.domain.User;
import org.springframework.stereotype.Component;

/**
 * Created by hp on 2019/7/3.
 */
@Component
public class UserFeignClientFallback implements UserFeignClient {
    @Override
    public User findById(Long id) {
        User user = new User();
        user.setId(id);
        user.setName("用户查询出现异常！");
        return user;
    }
}
